﻿using HarmonyLib;
using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;

namespace Miao.Stand
{
    [HarmonyPatch(typeof(TraitSet), "GainTrait")]
    public class TraitSet_GainTrait
    {
        /// <summary>
        /// 有特性时直接创建相应设定
        /// </summary>
        /// <param name="__instance"></param>
        /// <param name="trait"></param>
        public static void Postfix(TraitSet __instance, Trait trait)
        { 
            if(trait.def == StandDefOf.StandMaster)
            {
               StandGenerator.StandHediffGenerator(trait.pawn);
               // trait.pawn.needs.
            }
        }
        //抄的Pawn_NeedsTracker，但核心里这是给私有变量用不了
        private void AddNeed(NeedDef nd,Pawn pawn)
        {
          
        }

    }
}
